from tkinter import *
from show import showinmap, showoutmap, move
from predict import predictinmap, predictoutmap


root = Tk()
root.geometry('460x240')
root.title('动物轨迹分析')

lb1 = Label(root, text='请输入一个动物ID：')
lb1.place(relx=0.1, rely=0.1, relwidth=0.8, relheight=0.1)

inp1 = Entry(root)
inp1.place(relx=0.3, rely=0.2, relwidth=0.3, relheight=0.1)

btn1 = Button(root, text='显示动物轨迹(带地图)', command=lambda: showinmap(inp1.get()))
btn1.place(relx=0.25, rely=0.4, relwidth=0.4, relheight=0.1)

btn2 = Button(root, text='显示动物轨迹（不带地图）', command=lambda: showoutmap(inp1.get()))
btn2.place(relx=0.25, rely=0.5, relwidth=0.4, relheight=0.1)


btn3 = Button(root, text='预测动物轨迹（带地图）', command=lambda: predictinmap(inp1.get()))
btn3.place(relx=0.25, rely=0.6, relwidth=0.4, relheight=0.1)

btn4 = Button(root, text='预测动物轨迹（不带地图）', command=lambda: predictoutmap(inp1.get()))
btn4.place(relx=0.25, rely=0.7, relwidth=0.4, relheight=0.1)

btn5 = Button(root, text='动态显示轨迹', command=lambda: move(inp1.get()))
btn5.place(relx=0.25, rely=0.8, relwidth=0.4, relheight=0.1)
root.mainloop()
